<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
		<link rel="stylesheet" type="text/css" href="../../css/reset.css"/>
		<link rel="stylesheet" type="text/css" href="../../css/add.css"/>
	</head>
	<body>
		<div id="app">
			<div class="header">
				<span>添加快递员</span>
			</div>
			<form id="form2">
			<div class="content">
				<table>
					<tr>
						<td class="text-right">姓名</td><td class="content_right"><input class="input" id="username" placeholder="请输入姓名"></td>
					</tr>
					<tr>
						<td class="text-right">手机号码</td><td class="content_right"><input class="input" id="phonenumber" placeholder="请输入姓名"></td>
					</tr>
					<tr>
						<td class="text-right">身份证号码</td><td class="content_right"><input class="input" id="cardid" placeholder="请输入姓名"></td>
					</tr>
					<tr>
						<td class="text-right">密码</td><td class="content_right"><input class="input" id="password" placeholder="请输入姓名"></td>
					</tr>
					<tr>
						<td></td>
						<td class="content_right">
							<button class="btn btn-info" type="submit"  >立即提交</button>
							<span class="btn">重置</span> </td>
					</tr>
				</table>
			</div>
			</form>
		</div>
		<script src="../../assets/layui.all.js"></script>
		<script src="/qrcode/jquery2.1.4.js"></script>
		<script src="/layer/layer.js"></script>

		<script>
			$(function () {
				$("#form2").submit(function () {
					var windowId = layer.load();
					var username = $("#username").val();
					var phonenumber = $("#phonenumber").val();
					var cardid = $("#cardid").val();
					var password = $("#password").val();

					$.post("/user/insert3.do",
							{
								username:username,phonenumber:phonenumber,cardid:cardid,
								cardid:cardid,password:password
							},
							function (data) {
								layer.close(windowId);
								layer.msg(data.result);
								if (data.status==0){
									$("input").val("");
								}
							}),
							"JSON"});
			});
		</script>
	</body>
</html>
